<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./1.js"></script>
    <style>
        .card {
            width: 100px;
            height: 100px;
            border: 1px solid #000;
            position: relative;
            overflow: hidden;
        }
        .tag {
            text-align: center;
            position: absolute;
            background: grey;
            color: #fff;
            width: 80%;
            height: 18px;
            line-height: 18px;
            top: 10px;
            left: 50%;
            transform: rotate(45deg);
            border: 1px solid #000;
        }
    </style>
</head>
<body>
    <div class="card">
        <div class="tag">售完</div>
    </div>
</body>
</html>